// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
//引入element
import ElementUI from 'element-ui'
import '../static/theme-chalk/index.css'
import '../static/css/base.css'

import '../static/font/iconfont.css'
//Moment:引入moment
import Moment from 'moment';
//引入jq

import * as d3 from "d3";
//Axios:引入axios
import Axios from 'axios';

Vue.config.productionTip = false


Vue.use(ElementUI)

Vue.prototype.$moment = Moment;

Vue.filter('cDate', function (value) {
  return Moment(value).format('YYYY-MM-DD');
});

Vue.filter('convertDate', function (value) {
  return Moment(value).format('YYYY-MM-DD HH:mm');
});

Vue.prototype.$d3 = d3;
window.d3 = d3;

//Axios:挂载原型
Vue.prototype.$axios = Axios;

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: {App},
  template: '<App/>'
})
